﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.Collections;

namespace Editor.Old
{
    [XmlInclude(typeof(Course))]
    public class Department : Element
    {
        private List<Course> courses = new List<Course>();

        public Department()
        {
        }

        public Department(string name)
            : base(name)
        {
        }

        public override IList ChildElements
        {
            get
            {
                return courses;
            }
            set
            {
                courses = value as List<Course>;
            }
        }

        public override Element CreateChildElement(string childElementName)
        {
            return new Course(childElementName);
        }
    }
}
